package cn.yunyichina.provider.pay.pacity.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.framework.dubbo.service.impl.YytServiceImpl;
import cn.yunyichina.provider.iface.entity.common.ResCommon;
import cn.yunyichina.provider.iface.entity.dto.pacity.*;
import cn.yunyichina.provider.iface.entity.dto.pacity.PacityOrderQueryRequestDTO;
import cn.yunyichina.provider.iface.entity.dto.pacity.PacityOrderQueryResponseDTO;
import cn.yunyichina.provider.iface.service.IPacity;

/**
 * Created by Lullaby on 2017/6/13.
 */
public class PacityAttachService extends YytServiceImpl implements IPacity {

    public ResCommon<PacityAccessTokenResponseDTO> getPacityAccessToken(PacityAccessTokenRequestDTO requestDTO) {
        return SpringContextHandler.getBean(PacityAuthService.class).getPacityAccessToken(requestDTO);
    }

    public ResCommon<PacityUserInfoResponseDTO> getPacityUserInfo(PacityUserInfoRequestDTO requestDTO) {
        return SpringContextHandler.getBean(PacityUserService.class).getPacityUserInfo(requestDTO);
    }

    public ResCommon<PacityPayResponseDTO> doPacityPay(PacityPayRequestDTO requestDTO) {
        return SpringContextHandler.getBean(PacityPayService.class).doPacityPay(requestDTO);
    }

    public ResCommon<PacityRefundResponseDTO> doPacityRefund(PacityRefundRequestDTO requestDTO) {
        return SpringContextHandler.getBean(PacityRefundService.class).doPacityRefund(requestDTO);
    }

    public ResCommon<PacityOrderQueryResponseDTO> queryPacityOrder(PacityOrderQueryRequestDTO requestDTO) {
        return SpringContextHandler.getBean(PacityOrderService.class).queryPacityOrder(requestDTO);
    }

    public ResCommon<PacityRefundOrderQueryResponseDTO> queryPacityRefundOrder(PacityRefundOrderQueryRequestDTO requestDTO) {
        return SpringContextHandler.getBean(PacityOrderService.class).queryPacityRefundOrder(requestDTO);
    }

}
